export default {
    namespaced:true,
  state: {
    userInfo:(localStorage.getItem("loginData")&&JSON.parse(localStorage.getItem("loginData")))||{}
  },
  mutations: {
    setUserInfo(state,userData){
      state.userInfo=userData
    }
  },
  actions: {
    setCountPromise(context,userData){
      context.commit('setUserInfo', userData)
    }
  },
  getters: {
    setUserInfo() {
      return state;
    }
      
  }
}